//js
export default {
  data: {
    table_data:[
      ["日期/时间","2020-12-16","2020-12-16","2020-12-16","2020-12-16","2020-12-16","2020-12-16","2020-12-16","2020-12-16","2020-12-16","2020-12-16","2020-12-16","2020-12-16"],
      ["表头1","10.10","15.36","58.00","66.41","20.21","22.00","10.10","15.36","58.00","66.41","20.21","22.00"],
      ["表头2","10.10","15.36","58.00","66.41","20.21","22.00","10.10","15.36","58.00","66.41","20.21","22.00"],
      ["表头3","10.10","15.36","58.00","66.41","20.21","22.00","10.10","15.36","58.00","66.41","20.21","22.00"],
      ["表头4","10.10","15.36","58.00","66.41","20.21","22.00","10.10","15.36","58.00","66.41","20.21","22.00"],
      ["表头5","10.10","15.36","58.00","66.41","20.21","22.00","10.10","15.36","58.00","66.41","20.21","22.00"],
      ["表头6","10.10","15.36","58.00","66.41","20.21","22.00","10.10","15.36","58.00","66.41","20.21","22.00"],
      ["表头7","10.10","15.36","58.00","66.41","20.21","22.00","10.10","15.36","58.00","66.41","20.21","22.00"]
    ],
    table_height:''

  },
  onInit() {
    let rowNum = this.table_data[0].length
    let height = rowNum*60 //我们在css中定义了行高为60像素
    this.table_height = height + 'px'
  }
}
